export const createDOM = (htag, props) => { // 生成dom元素
    let tag = document.createElement(htag)
    for (let propName in props) {
      let propVal = props[propName]
      tag.setAttribute(propName, propVal)
    }
    return tag
}